package com.srit.recipes.dao;

import com.srit.recipes.common.parent.ParentDao;
import com.srit.recipes.entity.InventoryHis;
import com.srit.recipes.entity.InventoryInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface InventoryHisDao extends ParentDao<InventoryHis, Integer> {

    Page<InventoryHis> findAllByType(int type, Pageable pageable);


    List<InventoryHis> findAllByTypeAndCreateTimeBetween(int type, Date start, Date end);

    
}
